﻿using System;
using System.ServiceModel;

namespace Arete
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Arete.MyPublisher");
            Console.WriteLine("Starting WCF Host...");
            const string assemblyName = "Arete.WcfEventService.dll";
            const string className = "Arete.MyPublisher";
            const string name = "Arete.MyPublisher";

            var httpUrl = new Uri("http://localhost:8090/MyPublisher/");

            var host = new ServiceHost(typeof(MyPublisher));
            Console.WriteLine("{0}:  Attempting to host {1} Service at {2}",
                DateTime.Now, name, host.BaseAddresses[0]);
            host.Open();
            Console.WriteLine("Service Hosted at {0}", DateTime.Now);
            Console.WriteLine("Host is running...Press  key to stop the service.");
            Console.ReadLine();
            host.Close();
        }
    }
}
